<%@page import="java.io.File"%>
<%@page import="java.util.Enumeration"%>
<%@page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy"%>
<%@page import="com.oreilly.servlet.MultipartRequest"%>
<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<%
	String uploadPath = request.getRealPath("/upload");
	
	int size=10*1024*1024;
	
	String fileName2="";
	String origfilename2="";
	
	
	try{ 
		MultipartRequest multi = new MultipartRequest(
				request, 
				uploadPath,
				size,
				"euc-kr",
				new DefaultFileRenamePolicy());	
		Enumeration files =multi.getFileNames();		
		String file2=(String)files.nextElement();
		fileName2=multi.getFilesystemName(file2);
		origfilename2=multi.getOriginalFileName(file2);
		
	}catch(Exception e)	{
		e.printStackTrace();
	}

%>



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body>


</body>
</html>